import 'package:flutter/material.dart';
import 'package:flutter_vant_kit/widgets/addressList.dart';

class AddressListProvider with ChangeNotifier {
  List<AddressInfo> addressList = [];
  int index = 0;
  AddressInfo selectedAddress;

  changeValue(List<AddressInfo> arr) {
    addressList = arr;
    notifyListeners();
  }

  changeIndex(int val) {
    index = val;
    notifyListeners();
  }

  changeAddress(AddressInfo val) {
    selectedAddress = val;
    notifyListeners();
  }
}
